class emp: def __init__(self,i): self.name=input("For Employee "+str(i+1)+"\nEnter employee name: ") self.addr=input("Enter Employee Address: ") n=int(input("Enter no. of employees: ")) lis=[] for i in range(n): lis.append(emp(i)) print("Displaying") for i in range(n): name=lis[i].name addr=lis[i].addr print("Employee ",(i+1),", Name= ",name," Address=",addr)